package file;

import java.io.File;

public class Test01 {
    public static void main(String[] args) throws Exception {
        for (int i = 1; i <= 100; i++) {
            File f = new File(i+".txt");
            if (f.exists()){
                System.out.println("文件已存在");
            }else {
                f.createNewFile();
                System.out.println("文件已创建");
            }
        }
    }
}
